package com.ruoyi.hotel.task;

import com.ruoyi.common.utils.reflect.ReflectUtils;
import com.ruoyi.hotel.service.IHotelRoomListService;
import com.ruoyi.hotel.service.IHotelUserService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import com.ruoyi.common.utils.StringUtils;

/**
 * 定时任务调度测试
 * 
 * @author ruoyi
 */
@Component("hotelTask")
public class HotelTask
{
    private static Logger logger = LoggerFactory.getLogger(ReflectUtils.class);

    @Autowired
    private IHotelRoomListService hotelRoomListService;

    public void rsyncHotelRoomList()
    {
        logger.info("----------执行rsyncHotelRoomList方法开始----------");
        hotelRoomListService.rsyncHotelRoomList();
        logger.info("----------执行rsyncHotelRoomList方法结束----------");
    }


    public void sendDaySummary()
    {
        logger.info("----------执行rsyncHotelRoomList方法 每日汇总任务 开始----------");
        hotelRoomListService.sendDaySummary();
        logger.info("----------执行rsyncHotelRoomList方法 每日汇总任务 结束----------");
    }

}
